<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
class CheckString {
    /**
     * 检测Email
     * @param <String> $str
     * @return <String>
     */
    static public function email($str) {
        return $str;
    }
    
    static public function string($str) {
    }

    /**
     * 检测是否是数字
     * @param <Int> $int
     * @return <Int>
     */
    static public function int($int) {
        if(!is_numeric($int) ||  $int ==0 || $int ==''){
            return 0;
        }else{
            return $int;
        }
    }
    
    static public function url($int) {
    }
    
    static public function ip($int) {
    }

}
?>
